package com.csnf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StorageMapper {

    //扣减库存
    @Update("update tb_storage set count = count - #{count} where product_code = #{productCode}")
    public int updateStorage(String productCode,int count);


}
